<div class="admin_left actions">
	<h3 style="font-size:20px;">Manage more</h3>
	<ul>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('Edit Consignment'), array('action' => 'edit', $consignment['Consignment']['id']),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Form->postLink(__('Delete Consignment'), array('action' => 'delete', $consignment['Consignment']['id']),array('class' => 'consistentButton2'), null, __('Are you sure you want to delete # %s?', $consignment['Consignment']['id'])); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Consignments'), array('action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Consignment'), array('action' => 'add'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Items'), array('controller' => 'items', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Item'), array('controller' => 'items', 'action' => 'add'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('List Consigners'), array('controller' => 'consigners', 'action' => 'index'),array('class' => 'consistentButton2')); ?> </li>
		<li style="list-style-type:none; margin-bottom:20%;"><?php echo $this->Html->link(__('New Consigner'), array('controller' => 'consigners', 'action' => 'add'),array('class' => 'consistentButton2')); ?> </li>
	</ul>
</div>



<div id="pinkHeader" class="admin_right consignments form">

        <div id=breadcrumbAdmin>
            <?php $this->Html->addCrumb('Consignments', '/Consignments/index'); ?>
            <?php $this->Html->addCrumb('View', '/Consignments/view', array('style'=> ('text-decoration:underline;  color:#EB1E70;'))); ?>
            <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Transactions', 'url' => array('controller' => 'Sales', 'action' => 'index', 'plugin' => null), 'escape' => false)); ?>
        </div>

    <table cellpadding="0" cellspacing="0" class=" table table-bordered table-hover">
    <h2><?php  echo __('Consignment'); ?></h2>
     <!-- <th style="font-size:180%;"><?php echo __('Consignment Details'); ?></th> -->

            <tr>
                <th><?php echo __('Id'); ?></th>
                <th><?php echo __('Item Name'); ?></th>
                <th><?php echo __('Item Status'); ?></th>
                <th><?php echo __('description'); ?></th>
                <th><?php echo __('Consigner Name'); ?></th>
                <th><?php echo __('Consignment Note'); ?></th>
                &nbsp;
            </tr>

<?php foreach ($consignmentItem as $items): 
//print_r($items); ?>

            <tr>
                <td>
                    <?php
				
					 echo h($items['Item']['id']); ?>
                    &nbsp;
                </td>

                <td>
					<?php echo $this->html->link($items['Item']['name'], array('controller' => 'items', 'action' => 'view', $items['Item']['id'])); ?>
                    &nbsp;
                </td>

                <td>
                    <?php echo h($items['ItemStatuses']['name']); ?>
                    &nbsp;
                </td>

                <td>
                    <?php echo h($items['Item']['description']); ?>
                    &nbsp;
                </td>
				
                <td>
                    <?php echo $this->Html->link($consignment['Consigner']['name'], array('controller' => 'consigners', 'action' => 'view', $consignment['Consigner']['id'])); ?>
                    &nbsp;
                </td>

                <td>
                    <?php echo h($consignment['Consignment']['note']); ?>
                    &nbsp;
                </td>
            </tr>
 <?php endforeach; ?>
    </table>


 
</div>

